package com.library.logging.modules.operationlog.service;

import com.library.logging.modules.operationlog.entity.OperationLog;
import com.library.logging.modules.operationlog.vo.OperationLogVO;
import com.library.logging.modules.operationlog.bo.OperationLogPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import jakarta.servlet.http.HttpServletRequest;
import org.aspectj.lang.JoinPoint;

/**
 * @Author xyh
 * @Desc 操作日志表(OperationLog)表服务接口
 * @Date 2023-10-05 14:42:51
 */
public interface OperationLogService extends IService<OperationLog> {

    /**
     * 操作日志分页查询
     */
    IPage<OperationLogVO> queryByPage(OperationLogPage page);

    /**
     * 登录/退出日志分页查询
     * @param page
     * @return
     */
    IPage<OperationLogVO> queryLoginLogByPage(OperationLogPage page);

    /**
     * 新增操作日志
     */
    void insert(HttpServletRequest request, JoinPoint joinPoint, String result);

}
